Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the hive workaround to support the new hive #1287

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

kobihk
Copy link
Contributor

@kobihk kobihk commented Mar 13, 2024

In the old Hive the cluster status was Resuming instead of Running so we had the workaround to check that
In the new Hive this issue was fixed and the status is Running but to support both we updated the workaround

verified with old Hive:
➜ oc -n rhods get clusterclaim ods-qe-psi-03-claim -o json | jq '.status.conditions[] | select(.type=="ClusterRunning" and (.reason=="Resuming" or .reason=="Running"))' --exit-status
{
"lastProbeTime": "2024-03-05T17:38:34Z",
"lastTransitionTime": "2024-03-05T17:38:34Z",
"message": "Waiting for cluster to be running",
"reason": "Resuming",
"status": "False",
"type": "ClusterRunning"
}

verified with the New Hive:
➜ oc -n rhoai get clusterclaim ods-qe-psi-04-claim -o json | jq '.status.conditions[] | select(.type=="ClusterRunning" and (.reason=="Resuming" or .reason=="Running"))' --exit-status
{
"lastProbeTime": "2024-03-13T11:42:33Z",
"lastTransitionTime": "2024-03-13T11:42:33Z",
"message": "Cluster is running",
"reason": "Running",
"status": "True",
"type": "ClusterRunning"
}

related to jira ticket: RHOAIENG-3338

@kobihk kobihk self-assigned this Mar 13, 2024
@@ -102,7 +102,7 @@
File Should Not Be Empty ${osp_clouds_yaml}
${shell_script} = Catenate
... ${CURDIR}/OSP/create_fips.sh ${cluster_name} ${infrastructure_configurations}[base_domain]
... ${infrastructure_configurations}[osp_network] ${infrastructure_configurations}[osp_cloud_name] ${artifacts_dir}/
... ${infrastructure_configurations}[osp_network] ${infrastructure_configurations}[osp_cloud_name] ${artifacts_dir}/

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning

Line is too long (123/120)
${claim_status} = Run Process
... oc -n ${hive_namespace} get clusterclaim ${claim_name} -o json | jq '.status.conditions[] | select(.type\=\="ClusterRunning" and .reason\=\="Resuming")' --exit-status shell=yes
${claim_status} = Run Process
... oc -n ${hive_namespace} get clusterclaim ${claim_name} -o json | jq '.status.conditions[] | select(.type\=\="ClusterRunning" and (.reason\=\="Resuming" or .reason\=\="Running"))' --exit-status shell=yes

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning

Line is too long (217/120)
related to jira ticket: RHOAIENG-3338

Signed-off-by: Kobi Hakimi <[email protected]>
@kobihk kobihk force-pushed the update_hive_wa_master branch from ae361b8 to 0357f31 Compare March 13, 2024 14:22
Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
446 0 0 446 100

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@kobihk kobihk merged commit 6cb0617 into red-hat-data-services:master Mar 14, 2024
12 checks passed
@kobihk kobihk deleted the update_hive_wa_master branch March 14, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants